Set theory
- Basic Definitions
- Set Notation
- Membership and Inclusion
- Venn Diagrams
- Union ( ∪ )
- Intersection ( ∩ )
- Difference ( A \ B )
- Complement ( A' )
- Symmetric Difference
- Cartesian Product
- Pairs and Tuples
- Commutative, Associative, and Distributive Laws
- De Morgan’s Laws
- Absorption and Idempotent Laws
- Double Complement Law
- Proofs Using Venn Diagrams and Algebraic Techniques
- Definitions
- Properties of Relations
- Equivalence Relations
- Partition of a Set
- Partial and Total Orders
- Hasse Diagrams
Introduction to Set Theory
Basic Definitions
Set, Element, Subset
- Set: A set is a well-defined collection of distinct objects, considered as an object in its own right. The objects in a set are called elements or members of the set.
- Element: If
is an object, we say is an element of a set if belongs to the set. This is denoted as . - Subset: A set
is called a subset of another set if every element of is also an element of . This is denoted as .
Example:
Let
Empty Set
- Empty Set: The empty set, denoted by
, is the set that contains no elements. Formally:
Universal Set
- Universal Set: The universal set is the set that contains all possible elements for a particular discussion. It is typically denoted as
. All other sets are considered subsets of the universal set.
Set Notation
Roster Notation
- Roster Notation: A set is defined by explicitly listing all of its elements inside curly braces.
- Example:
means that is the set containing the elements 1, 2, 3, and 4.
- Example:
Set-Builder Notation
- Set-Builder Notation: A set is defined by specifying a property that its members must satisfy.
- Example:
defines the set as all even numbers.
- Example:
Membership and Inclusion
Membership
- Membership is the relationship between an element and a set. If
is an element of a set , we say belongs to and write:
If
Subset and Inclusion
- Subset: A set
is a subset of another set if every element of is also an element of . This is denoted as:
- Proper Subset:
is a proper subset of , written , if is a subset of but .
Example:
If
Venn Diagrams
- Venn Diagrams: A Venn diagram visually represents sets and their relationships. Each set is shown as a circle, and the relationships between the sets (such as intersections or unions) are depicted by the overlapping or non-overlapping areas of the circles.
Common Venn Diagram Operations:
- Intersection (
): The set of elements common to both and . Represented by the overlapping region of two circles. - Union (
): The set of elements that belong to either or . Represented by the entire area covered by both circles. - Complement (
): The set of elements not in , but in the universal set . - Difference (
): The set of elements in but not in .
Example:
If
(union) (intersection) (difference)
Venn diagrams provide an intuitive way to visualize these set operations.
Operations on Sets
Union ( ∪ )
- Union of two sets
and is the set of elements that are in either or , or in both. The union operation is denoted by .
- Example: If
and , then:
Intersection ( ∩ )
- Intersection of two sets
and is the set of elements that are in both and . The intersection operation is denoted by .
- Example: If
and , then:
Difference ( A \ B )
- The difference of two sets
and is the set of elements that are in but not in . The difference is denoted by or .
- Example: If
and , then:
Complement ( A' )
- The complement of a set
refers to all the elements that are not in , but are in the universal set . The complement of is denoted by or .
- Example: If the universal set
and , then:
Symmetric Difference
- The symmetric difference of two sets
and is the set of elements that are in either of the sets, but not in their intersection. It is denoted by .
- Example: If
and , then:
Cartesian Product
- The Cartesian product of two sets
and is the set of all ordered pairs where and . It is denoted by .
- Example: If
and , then:
Pairs and Tuples
- Pairs: A pair is an ordered collection of two elements. For example,
is a pair where the order matters— unless . - Tuples: A tuple is an ordered collection of elements. A 2-tuple is just a pair, a 3-tuple is called a triple, and so on. For example,
is a 3-tuple.
Example of Pairs and Tuples:
- Pair:
where the order matters. - Triple:
where each element in the tuple is in a specific position.
Basic Set Identities
Commutative, Associative, and Distributive Laws
Commutative Laws:
- The commutative law for union and intersection states that the order of sets does not affect the result of the operation.
Associative Laws:
- The associative law for union and intersection states that the grouping of sets does not affect the result.
Distributive Laws:
- The distributive law links union and intersection. It states that intersection distributes over union and vice versa.
De Morgan’s Laws
- De Morgan’s Laws describe the complement of unions and intersections. These laws are very important for simplifying expressions involving complements.
Example:
If
and , showing that De Morgan's law holds.
Absorption and Idempotent Laws
Absorption Laws:
- The absorption law simplifies expressions involving both union and intersection.
Idempotent Laws:
- The idempotent law states that combining a set with itself does not change the set.
Double Complement Law
- The double complement law states that the complement of the complement of a set is the set itself.
Example:
If
Proofs Using Venn Diagrams and Algebraic Techniques
Proof with Venn Diagrams:
- Venn Diagrams provide a visual representation of set operations and are useful for proving identities.
Example: Prove De Morgan’s Law using a Venn diagram:
- Draw two overlapping circles representing sets
and . - Shade the area outside the union of
and to represent . - Then, separately shade the intersection of
and (the regions outside and ). - You will see that the shaded regions for both expressions are identical, proving the identity.
Proof with Algebraic Techniques:
- Algebraic proofs involve manipulating set expressions step by step, using known identities.
Example: Prove the absorption law :
- Start with
. - By the distributive law, we have:
- By the idempotent law,
, so:
- By the absorption law again,
. Therefore:
Example of De Morgan’s Law Using Algebraic Techniques:
- Start with
. By De Morgan’s Law, this is equal to . To prove:
means all elements that are not in either or . means all elements that are not in and not in . - Since both describe the same set (elements not in
or ), they are equal, and thus:
Relations
Definitions
Ordered Pairs and Cartesian Products
- An ordered pair is a pair of elements
where the order matters; unless . - The Cartesian product of two sets
and , denoted , is the set of all ordered pairs where and :
- Example: If
and , then:
Binary Relations
- A binary relation from a set
to a set is a subset of the Cartesian product . If is a binary relation, we write to mean that . - If
, it is called a binary relation on .
Properties of Relations
Reflexive Relations
- A relation
on a set is called reflexive if every element of is related to itself:
- Example: If
, the relation is reflexive.
Symmetric Relations
- A relation
on a set is called symmetric if whenever , then :
- Example: If
, the relation is symmetric.
Antisymmetric Relations
- A relation
on a set is called antisymmetric if whenever and , then :
- Example: If
, the relation is antisymmetric, because no two distinct elements are mutually related.
Transitive Relations
- A relation
on a set is called transitive if whenever and , then :
- Example: If
and , the relation is transitive.
Equivalence Relations
- A relation
on a set is called an equivalence relation if it is reflexive, symmetric, and transitive. - Example: The relation "is equal to" on a set of numbers is an equivalence relation because:
- It is reflexive:
. - It is symmetric: If
, then . - It is transitive: If
and , then .
- It is reflexive:
Equivalence Classes
- If
is an equivalence relation on a set , then the equivalence class of an element is the set of all elements in that are related to :
- Example: For the equivalence relation "has the same remainder when divided by 3" on the set of integers, the equivalence class of 1 includes numbers like
.
Partition of a Set
- A partition of a set
is a collection of non-empty, disjoint subsets of whose union is . - Each equivalence class induced by an equivalence relation forms a partition of the set.
- Example: If
, a partition of might be .
Partial and Total Orders
Partial Orders
- A relation
on a set is called a partial order if it is reflexive, antisymmetric, and transitive. - A set with a partial order is called a partially ordered set or poset.
- Example: The "less than or equal to" relation
on the set of integers is a partial order.
Total Orders
- A partial order
on a set is called a total order if every pair of elements in is comparable, i.e., for any , either or . - Example: The relation
on the set of natural numbers is a total order because any two numbers can be compared.
Hasse Diagrams
- A Hasse diagram is a graphical representation of a finite partially ordered set.
- In a Hasse diagram:
- Elements are represented by points.
- There is a line from
to if and there is no element such that and . - The diagram omits arrows, assuming that lines go upward (i.e.,
means is above ).
Example:
For the set